import { commonRequestApi } from './request';

//雪茄百科 - 品牌列表查新
export const brandListApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/v1/sys/cigarEncyclopedia/band/list',
    data,
    'POST'
  );
//雪茄百科 - 根据雪茄品牌id获取对应的系列信息
export const seriesListApi = (data: any) =>
  commonRequestApi(
    `/wine-internet-community/v1/sys/cigarEncyclopedia/series/${data.brandId}`,
    data,
    'GET'
  );
//雪茄百科 - 根据雪茄sku获取雪茄产品详情信息
export const productListApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/v1/sys/cigarEncyclopedia/product',
    data,
    'POST'
  );

//收藏雪茄 -
export const collectionApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/v1/sys/cigarEncyclopedia/product/collection',
    data,
    'POST'
  );

//取消收藏雪茄 -
export const cancelCollectionApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/v1/sys/cigarEncyclopedia/product/cancelCollection',
    data,
    'POST'
  );

//批量取消收藏雪茄 -
export const batchDeleteApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/v1/sys/my/collect/product/batch/delete',
    data,
    'DELETE'
  );
//我的-收藏-商品列表收藏
export const collectionListApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/v1/sys/my/collect/product',
    data,
    'POST'
  );

//根据名称搜索雪茄产品列表
export const searchListApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/v1/sys/cigarEncyclopedia/product/list',
    data,
    'POST'
  );

//根据名称搜索雪茄产品列表
export const searchCabinetListApi = (data: any) =>
  commonRequestApi('/wine-internet-community/cigar/cabinet/list', data, 'POST');
